import uvicorn
from fastapi import FastAPI
from server import MyServer

app = FastAPI()


@app.get("/")
async def root():
    server = MyServer()
    server.exec_cmd(command="df -h")
    return {"message": "Hello World"}


@app.get("/api/server/inspect/{name}")
async def say_hello(name: str):

    return {"message": f"Hello {name}"}



if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=8088)
